#include <REGX52.H>
#include <INTRINS.H>
#include "delay.h"
#include "lcd1602.h"
#include "matrix.h"

void main()
{
	unsigned char keyNum = 0;
	
	LCD_Init();
	//LCD_ShowString(1, 1, "Matrix Key!");
	
	while(1)
	{
		keyNum = MatrixKey();
		if(keyNum)
		{
			LCD_ShowNum(1, 1, keyNum, 2);
		}
	}
}
